//
//  RecreationHeaderCollectionReusableView.m
//  HappyNews
//
//  Created by lanou on 16/1/13.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "RecreationHeaderCollectionReusableView.h"

@implementation RecreationHeaderCollectionReusableView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
       
        

        
    }
    return self;
}
 // 轮播图(第三方)
// 调用set方法
- (void)setImageArray:(NSMutableArray *)imageArray {
    _imageArray = imageArray;
    if (imageArray.count > 0) {
        if (_picView == nil) {
            _picView = [DCPicScrollView picScrollViewWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight / 3) WithImageUrls:_imageArray];
            
            _picView.titleData = _titleArray;
            
            
            _picView.AutoScrollDelay = 3.0f;
            
            [self addSubview:_picView];
            [[DCWebImageManager shareManager]setDownloadImageRepeatCount:1];
            
            [[DCWebImageManager shareManager]setDownLoadImageError:^(NSError *error, NSString *url) {
                NSLog(@"%@",error);
            }];
        }

    }
}

@end
